package com.cq.hd.member.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business")
@ApiModel(value = "TbBusinessPo对象", description = "商家表")
public class TbBusinessPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商家id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "资金账户类型(1:自建资金账户 2:平台资金账户)")
    @TableField("financial_account_type")
    private Integer financialAccountType;

    @ApiModelProperty(value = "入驻邀请码")
    @TableField("settle_code")
    private String settleCode;

    @ApiModelProperty(value = "邀请码")
    @TableField("invite_code")
    private String inviteCode;

    @ApiModelProperty(value = "商家编号")
    @TableField("business_no")
    private String businessNo;

    @ApiModelProperty(value = "汇付商户号")
    @TableField("hf_merchant_no")
    private String hfMerchantNo;

    @ApiModelProperty(value = "子账户号（商家另一个现金户）")
    @TableField("hf_acct_id")
    private String hfAcctId;

    @ApiModelProperty(value = "取现卡序列号")
    @TableField("withdrawal_card_no")
    private String withdrawalCardNo;

    @ApiModelProperty(value = "openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "微信号")
    @TableField("wechat")
    private String wechat;

    @ApiModelProperty(value = "会员到期时间")
    @TableField("member_expire_time")
    private LocalDateTime memberExpireTime;

    @ApiModelProperty(value = "商家名称")
    @TableField("business_name")
    private String businessName;

    @ApiModelProperty(value = "商家简称")
    @TableField("business_short_name")
    private String businessShortName;

    @ApiModelProperty(value = "商家logo")
    @TableField("logo")
    private String logo;

    @ApiModelProperty(value = "商家简介")
    @TableField("introduction")
    private String introduction;

    @ApiModelProperty(value = "商家简介图片")
    @TableField("introduction_img")
    private String introductionImg;

    @ApiModelProperty(value = "客服电话")
    @TableField("customer_mobile")
    private String customerMobile;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("contact_name")
    private String contactName;

    @ApiModelProperty(value = "联系人手机号")
    @TableField("contact_mobile_no")
    private String contactMobileNo;

    @ApiModelProperty(value = "联系人电子邮箱")
    @TableField("contact_email")
    private String contactEmail;

    @ApiModelProperty(value = "系统管理员手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "定位省份名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "定位市名称")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "定位区县名称")
    @TableField("county_name")
    private String countyName;

    @ApiModelProperty(value = "定位详细地址")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "佣金补贴金额")
    @TableField("subsidy_amt")
    private BigDecimal subsidyAmt;

    @ApiModelProperty(value = "冻结佣金补贴金额(作废)")
    @TableField("freeze_amt")
    private BigDecimal freezeAmt;

    @ApiModelProperty(value = "营销补贴金额(作废)")
    @TableField("marketing_amt")
    private BigDecimal marketingAmt;

    @ApiModelProperty(value = "冻结营销补贴金额(作废)")
    @TableField("freeze_marketing_amt")
    private BigDecimal freezeMarketingAmt;

    @ApiModelProperty(value = "活动发布次数(赠送免费次数)")
    @TableField("active_count")
    private Integer activeCount;

    @ApiModelProperty(value = "经纪人人数")
    @TableField("agent_count")
    private Integer agentCount;

    @ApiModelProperty(value = "商家状态（1-正常，2-试用中，3-已过期）")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "公司类型(1：政府机构，2：国营企业，3：私营企业，4：外资企业，5：个体工商户，6：其它组织，7：事业单位)")
    @TableField("company_type")
    private Integer companyType;

    @ApiModelProperty(value = "所属行业code")
    @TableField("mcc")
    private String mcc;

    @ApiModelProperty(value = "所属行业名称")
    @TableField("mcc_name")
    private String mccName;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "商家主页背景图")
    @TableField("home_background_image")
    private String homeBackgroundImage;

    @ApiModelProperty(value = "分享海报显示商家头像：1是 2否")
    @TableField("poster_show_avatar_state")
    private Integer posterShowAvatarState;

    @ApiModelProperty(value = "最多可邀请经纪人数量(累计)。null表示不限制")
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private Integer maxInviteAgentCount;

    @ApiModelProperty(value = "单活动商户数（一个活动最多引用几个商户的产品）。null表示不限制")
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private Integer singleActiveMerchantCount;

    @ApiModelProperty(value = "是否开启积分商城：0未开启 1已开启 2已关闭")
    private Integer pointsMallState;

    @ApiModelProperty(value = "积分商城首次开通时间")
    private LocalDateTime pointsMallFirstOpenTime;
}
